﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.SYS系统管理
{
    /// <summary>
    /// 消息
    /// </summary>
    public class Sys_Message : Entity<int>
    {


        /// <summary>
        /// 消息类型
        /// </summary>
        public string? MessageType { get; set; }

        /// <summary>
        /// 消息级别
        /// 默认值为 'A'
        /// </summary>
        public string? MessageLevel { get; set; } = "A";

        /// <summary>
        /// 标题
        /// </summary>
        public string? MessageTitle { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string? MessageContent { get; set; }

        /// <summary>
        /// 发送人
        /// </summary>
        public int SenderId { get; set; }

        /// <summary>
        /// 发送人用户名
        /// </summary>
        public string? SenderName { get; set; }

        /// <summary>
        /// 发送人昵称
        /// </summary>
        public string? SenderNick { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public int RecipientId { get; set; }

        /// <summary>
        /// 收件人用户名
        /// </summary>
        public string? RecipientName { get; set; }

        /// <summary>
        /// 收件人昵称
        /// </summary>
        public string? RecipientNick { get; set; }

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? ProcessTime { get; set; }

        /// <summary>
        /// 回调地址
        /// </summary>
        public string? CallBack { get; set; }

        /// <summary>
        /// 状态
        /// 默认值为 'UNREAD'
        /// </summary>
        public string? Status { get; set; } = "UNREAD";

        /// <summary>
        /// 删除标识
        /// 默认值为 'N'
        /// </summary>
        public string? DeletedFlag { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }



        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpDateTime { get; set; }
    }
}
